/**
 * user service
 */
 import axios from "../utils/request"

 let get=async (id:number)=>{
     return new Promise((resolve,reject)=>{
         setTimeout(() => {
             resolve({
                 id:id,
                 username:"admin",
                 password:"123456"
             })
         }, 500);
     });
 }
 
 function login(params:any){
     return axios.post("/api/user/login",params);
 }
 
 
 export default {
     get,
     login
 }
 